package presentation.simplecomponents;

import java.awt.Color;

import javax.swing.JScrollBar;
import javax.swing.JScrollPane;

public class MyScrollPane extends JScrollPane{
	private Color barColor = Color.WHITE;
//	private Color bgColor = Color.WHITE;
	private JScrollBar horizontalBar;
	private JScrollBar verticalBar;
//	private Component corner;
	/**
	 * 
	 */
	private static final long serialVersionUID = -8425292224665151482L;

	public MyScrollPane(){
		horizontalBar = this.getHorizontalScrollBar();
		verticalBar = this.getVerticalScrollBar();
//		corner = this.getCorner(UPPER_RIGHT_CORNER);
//		this.setBackground(bgColor);
		
		horizontalBar.setBackground(barColor);
		horizontalBar.setForeground(barColor);
		verticalBar.setBackground(barColor);
		verticalBar.setForeground(barColor);
//		corner.setBackground(bgColor);
	}
}
